<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!-- This is a Header File and should not need body tags -->
<%
	//Verify Identity or redirect back to login
	Object obj = session.getAttribute("UserStaff");
	if (obj == null)
	{ response.sendRedirect("LoginStaff"); }
%>
<style type="text/css">
	.MenuBorder { border: solid 1px #CCCCCC; }
	.Seperator  { border-left: solid 1px #CCCCCC; }
</style>
<center>
	<table border='0'>
		<tr>
			<td align='left'>
				<b>Leave Application System</b>
			</td>
			<td align='right'>
				Logged in as: ${sessionScope.UserStaff.name}&nbsp;(${sessionScope.UserStaff.employeeid})&nbsp;<a href="EmployeeChangePassword" >Account</a>&nbsp;<a href="LogoutStaff" >Logout</a>
			</td>
		</tr>
		<tr align='left'>
			<td colspan='2'>
				<div class="MenuBorder">
					<table border='0' cellspacing='3' cellpadding='3'>
						<tr align='left'>
							<td>
								<a href="">Apply for Leave</a>
							</td>
							<td class='Seperator'>&nbsp;</td>	
							<td>
								<a href="">View Personal Leave History</a>
							</td>
							<td class='Seperator'>&nbsp;</td>	
							<td>
								<a href="">Claim Overtime</a>
							</td>
						</tr>
						<tr align='left'>
							<td>
								<c:if test="${sessionScope.UserStaff.isManager}">
									<a href="">
								</c:if>
								Approve Subordinate Leave
								<c:if test="${sessionScope.UserStaff.isManager}">
									</a>
								</c:if>
							</td>
							<td class='Seperator'>&nbsp;</td>	
							<td>
								<c:if test="${sessionScope.UserStaff.isManager}">
									<a href="">
								</c:if>	
								View Subordinate Leave History
								<c:if test="${sessionScope.UserStaff.isManager}">
									</a>
								</c:if>		
							</td>
							<td class='Seperator'>&nbsp;</td>	
							<td>
								<c:if test="${sessionScope.UserStaff.isManager}">
									<a href="">
								</c:if>
								Approve Overtime Claims
								<c:if test="${sessionScope.UserStaff.isManager}">
									</a>
								</c:if>
							</td>
						</tr>						
					</table>
				</div>
			</td>
		</tr>
	</table>
</center>